Accusoft.ImagXpress13.Net
Load Image from File

Prior to loading an image, set the LoadOptions to provide specific instructions for loading the image. If no load options are specified, ImagXpress uses default values when loading the image.

Load from a Local Disk File

To load an image from a file, use the ImageX.FromFile methods. When called, the FromFile methods store a copy of the original image in the ImageX object. ImagXpress® looks at the file extension of the specified filename parameter to recognize the filetype.

The ImageStatusEvent and ProgressEvent events are raised to provide feedback on the status of the loading process. Once loading is complete, the image is available in the ImageX object. 

Load from an FTP, HTTP, or HTTPs Location

ImagXpress supports loading of image files from FTP, HTTP, and HTTP/S locations, as follows:

1. To specify passwords or proxy settings, set the Internet property within LoadOptions.

2. Call one of the following:

FromFile(ImagXpress,String,LoadOptions)

FromFile(ImagXpress,String,Int32,LoadOptions)

Make sure that the String parameter specifies the full Internet path and file name

3. A copy of the original image is stored in the ImageX object. 

Load a Multi-page Image From File

ImagXpress® supports the following multi-page image formats: TIFF, ICO, and DCX. The NumPages method provides the number of pages in the file. 

To load the entire multi-page file into one ImageX object, call either of the following:

FromFile(ImagXpress,String)

FromFile(ImagXpress,String,LoadOptions)

 

To load only one specified page of a multi-page file into the ImageX object, call one of the following:

FromFile(ImagXpress,String,Int32)

FromFile(ImagXpress,String,Int32,LoadOptions)  

 

See Also

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback